package tech.aistar.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import tech.aistar.entity.Reply;
import tech.aistar.entity.SeeRoomTrend;

import java.util.List;

public interface SeeRoomTrendMapper {
    @Select("select * from see_room_trend")
    List<SeeRoomTrend> selectAll();

    @Insert("insert into see_room_trend values(houseId,appointmentCount,agentId)")
    void insert(SeeRoomTrend seeRoomTrend);
    @Update("update see_room_trend set house_id=#{houseId},appointment_count=#{appointmentCount},agent_id=#{agentId} where id=#{Id}")
    void  updateByPrimaryKey(SeeRoomTrend seeRoomTrend);


    @Delete("delete from see_room_trend where id=#{id}")
    void deleteByPrimaryKey(Integer id);
}
